package com.blog.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.blog.entity.ProductType;
import com.blog.entity.User;
import com.blog.myUtils.DateTime;
import org.springframework.web.multipart.MultipartFile;

import java.io.Serializable;
import java.math.BigDecimal;

public class ProductForm {

    private Integer id;
    private Integer uid;
    private String name;
    private Integer type;
    private String sku;
    private String spu;
    private String imgMain;
    private String content;
    /**
     * 原价
     */
    private BigDecimal price;
    /**
     * 售价
     */
    private BigDecimal finalPrice;
    /**
     * 库存
     */
    private Integer qty;
    private String size;
    private Integer createdAt;
    private Integer updatedAt;

    private MultipartFile imgMainFile;

    public void setImgMainFile(MultipartFile imgMainFile) {
        this.imgMainFile = imgMainFile;
    }

    public MultipartFile getImgMainFile() {
        return imgMainFile;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getSku() {
        return sku;
    }

    public void setSku(String sku) {
        this.sku = sku;
    }

    public String getSpu() {
        return spu;
    }

    public void setSpu(String spu) {
        this.spu = spu;
    }

    public String getImgMain() {
        return imgMain;
    }

    public void setImgMain(String imgMain) {
        this.imgMain = imgMain;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public BigDecimal getFinalPrice() {
        return finalPrice;
    }

    public void setFinalPrice(BigDecimal finalPrice) {
        this.finalPrice = finalPrice;
    }

    public Integer getQty() {
        return qty;
    }

    public void setQty(Integer qty) {
        this.qty = qty;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    public Integer getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Integer createdAt) {
        this.createdAt = createdAt;
    }

    public Integer getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Integer updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Override
    public String toString() {
        return "Product{" +
                "id=" + id +
                ", uid=" + uid +
                ", name=" + name +
                ", type=" + type +
                ", sku=" + sku +
                ", spu=" + spu +
                ", imgMain=" + imgMain +
                ", content=" + content +
                ", price=" + price +
                ", finalPrice=" + finalPrice +
                ", qty=" + qty +
                ", size=" + size +
                ", createdAt=" + createdAt +
                ", updatedAt=" + updatedAt +
                "}";
    }

}
